#include "mainwindow.h"
#include "ui_mainwindow.h"

MainWindow::MainWindow(QWidget *parent) :
  QMainWindow(parent),
  ui(new Ui::MainWindow)
{
  ui->setupUi(this);
  speech = new Speech();
}

MainWindow::~MainWindow()
{
  delete ui;
  delete speech;
}


void MainWindow::playText()
{
  speech->setText(ui->textEdit_text->toPlainText().toStdString());

  speech->start();
}

void MainWindow::playFile()
{

}
